    package org.fly.dao;

    import org.fly.bean.OrderProduct;
    import org.fly.bean.query.OrderProductQuery;
    import org.apache.ibatis.annotations.Param;
    import org.springframework.stereotype.Repository;

    import java.util.List;

    /**
    * Created by autoCode on 2018-04-09 19:13:29.
    */
    @Repository
    public interface OrderProductDao {

    List<OrderProduct> list(OrderProductQuery query);

    long count(OrderProductQuery query);

    void  insert(OrderProduct data);

    void update(OrderProduct data);

    OrderProduct findById(String id);

    void delete(String id);

    List<OrderProduct> listByIds(@Param(value = "ids") List<String> ids);
    List<OrderProduct> listByOrderIdList(@Param(value = "orderIdList") List<String> orderIdList);

    void batchInsert(List<OrderProduct> list);


}
